﻿//  -------------------- iSharePoint -------------------- //
// 
//  Company:	IT Complex, LLC
//  Project:	Smart.Workflow
//  File name:	ActionRuleInstance.cs
//  Developer:	Solomatov Igor
//  Created:	16.04.2012
// 
//  -------------------- iSharePoint -------------------- //

using System;
using Smart.Common.Rules;

namespace Smart.Workflow
{
	/// <summary>
	/// ActionRule instance
	/// </summary>
	[Serializable]
	public class ActionRuleInstance
	{
		public ActivityInstance Parent;
		public ActionRule Definition;
		public IRule Rule;

		/// <summary>
		/// ActionRule instance
		/// </summary>
		public ActionRuleInstance()
		{
		}

		/// <summary>
		/// ActionRule instance
		/// </summary>
		public ActionRuleInstance(ActivityInstance parent, ActionRule definition)
		{
			Parent = parent;
			Definition = definition;

			throw new NotImplementedException();
			//Rule = new XmlRule(Definition.Condition, Definition.Action);
		}
	}
}